package com.puppet.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
public class RabbitMQConfig {
    /*
    * 创建消息队列
    * */
    @Bean
    public Queue simpleQueue(){
        return new Queue("simple.queue");
    }

    /*
     * 创建消息队列
     * */
    @Bean
    public Queue simpleQueue2(){
        return new Queue("simple.queue2",false,false,true);
    }
}
